Removed unnecessary comma
Added Documentation, added event prototypes