cleaning up code a bit
adding comments
moving server into the same scrip and running on thread
updating command line args to accept keywords