Fix some bugs and get working on ubuntu. Still figuring out how to
handle a reconnect issue. In the future, need to have some sort of
counter that will throw an error event if 5 reconnect events in a row