added function to specify ip tomcat is allowed to listen to. defaults to localhost
added utf-8 encoding for default