Solved undefined reference bug
Moved inputParameters global object to core.js
Code review and documentation