added parse logic
added editorconfig
throw error instead of just returning it
input type check
added tests
fixed testcase
added package.json
travis ci integration