let debug info go to catalina.log (in /var/log/tomcat7) by using
System.out instead of sending it to response

changed max number of frames to 50 (in servlet and jsp)

TODO: cleanup input file (is not deleted now!)