update sanitize method
refactor parsing of json; replace switch statements with generators in an object literal
remove extraneous variable from json parsing
use "require" for json parsing, rather than "fs" and "JSON" methods
refactor directory/file to json encoding; remove extaneous function
simplify decoding conditional
update version stamping
update template handling