Essential Bugfixes; added commandline parameter for port