Split index.js into multiple files. Parser.js is now a parser which is given to the node-serialport package as a parser