Added some print messages
Modified server code