split parser into separate files
renaming buffer to term-buffer
fixing module.exports for subparser functions