Updated subs for Hyperbolic class. Refactored create definition.

Now the HyperbolicFunction also has a subs in the base class and
the create method has been added in the inherited classes.
The create method has been refactored to pass by reference as
opposed to pass by value in the earlier version.