By midiagent

Added chat history, improved GUI and error handling