cleaning up, introducing function to wait for server answer, colored own messages