add in a default file hash and cleaned up init function a bit

This message hasn't been applied to the new PR @whyrusleeping