Make Servlet an object

There is no need to instantiate the Servlet class.
Fix compiler warnings