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

does the node need to be closed everywhere it is instantiated?