Reverting commit de92542

and added JSDOC on `defaults`, `events` and `routes` fields