Updated to the new naming convention
fixed and wrote test for error argument name
JSDoc params