De-bitrotted some more code
Added function to load obj pairs