Made SSHListener a bit more robust and moved some code out into methods
Added more error checking into main.

Also made SSHListener the default