Fixing silly mistakes
Fixing jsdoc and removing one unnecessary param