Cleaning up module creation and adding a hook for creating hashes in the interpreter