Changed Server to apache Server and deleted ServerThread
added argument for port in Server
removed constructor and fixed init call