Moved trace functions to new monitor.js, Modulefiles updated