fix issue #18, unit test by reading files

add test files in compressed file
add FORMAT.md for format specification of input and output
add unit tests through reading file
update grunt task
update npm test script