getAllfunctions renamed to functions; extend function added to copy properties from one object to another