Added node_modules to .gitignore.
Refactored mod utils and added memusage command.