Added support for object sheets (O). Removed goto functions (obsolete). Cleaned up some old functions.