Add support for multiple module exports from index.js
Split out logic for formatting a single line into separate function
Expose internal methods, easier to be testable
Handle undefined line argument, just in case
Create test.js with Mocha and Chai assert