Just a few changes. Nothing really works yet...
Added a exception instead of plain return.
Fixed syntax
started a new runcommand, and also renamed exception to error to better fit in
Added an exception so as not to have syntax error
added the ability to read from server...

fixed operationfailederror from not being defined

now for writing to the server...
Fixed inconsistency
Added a command input, but output is not working and needs re-doing.
improved various things, and killed the threading code for a logfile system
Fixed bad stuff and removed useless section @ bottom.