Restructured by adding structs and cleaning up code.

Also added color, to be able to seperate the clients.
Added color to cursors.