Improve OFFile and add a few new exceptions.