Fix error reporting on uncaught exceptions
Update index.js
Implement MemoryModel
bump version for npm publish
REALLY rudimentary code generator templates