Cleaned up main() in server a lot, added line break to function in chat.