refactor (more comments, usage function); add options (-cdh); able to specify commit hash to use