Reorganized the exports

Reverted to the old way of exports on top and function declarations
after that. Updated the docblocks to reflect this way of structuring
modules in node.
Merge branch 'chores/maintanance' of github.com:Springworks/node-input-validator into chores/maintanance

Conflicts:
	input-validator.js