pulling out transform and cleaning up
file.js style now consistent with remaining lib
proper license
adding trap dep
adding tests and correctly handling headers of the form '## xxx ##'
fixing npm test command