Initial work on the 'end' callback.

Not tested, not linted.
Fixes for #66 and #89
Merge branch 'fixes' into Events
Minor indentation & structure fixes
Added decimal mark support, fixes to 'val()'.
Switched order of code in val method
Minor input validation changes

Removed some large strings, too.
Fixes to class-apply mechanism
Removed test file. Oops.
Merge branch 'Events'
Updated readme