Use pwd module for hash checks.
Separate sgf checking in a module.
JSDoc syntax.