Use Java 7 diamond syntax where appropriate
Move parameters to external config file

Also add options for channel port and server password.
Fix formatting