Added support for IO primitive functions. Added some common IO primitives, such as read and load.