(fix) (doc) updated parameters on events, styled code to conform with guidelines in helpers.js