lots of changes

updated composer requirements/dependencies
updated example code
added features to Client class: interrupt, pollrate, finished some methods
worked on Connection class (finished connect method and other things)