Cleaned up code. Added comments. Enabled server loop between client instances.