cleaned up tomcat & comments added.