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

In a way, its the same as making people remember to close a file, or a socket