Updated main server code

Removed comments / statements that only made sense in the context of the course.

Re-wrote comments to more generally explain the process flow.