Added file read/write, some runtime generation stubs