added some documentation and started coding server loop; sockets and such