Did alot of clean up

Added disconnect button, log files, proper error messages and soon will
be an error log