Added __autoreleasing annotation to methods taking NSError**.  Also fixed theClass property.