renamed connect method as to not conflict with connect command
Added event dispatch system

It is tested and fully assholic