refactored the connection and client code
bumped version, made the version 0.1.0 because very big change when using the thread for the connection