Minor commenting and review

Still need to decide if we are going to do any rudimentary file format
checking in Javascript.

See #22.