changed stats object, removed connection event, docs and some fixes