Implemented rec inheritance.
Sorted methods.
Implemented auto storing of refs.