KomSession now takes host and port in the connect method. Cleaned up code.