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

@maybebtc Which one is the new PR?