Fix for issue #2

2 new tests, an update to text-metadata-parser.js, and a few random little additions.