Added a type function, which allows easy access to object type.
Added object accessor functions, as well as origin arguments.