Added IR::IArchive for reading IR files.
Renamed write* functions to put* functions.