Fixed reading from file, added command line argument for reading from file, added password in the connect event