add hash

remove commented code
takes care of #24