Fixed some indendation
Changed error checking in TCPConnection
Massive documentation overhaul.