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