Moved code into Env and Runtime, added bindings to native functions