Removed generics from ports; it was not being used anyway.  Started refactoring function system to be more modular.
The main function/operator refactoring is finished.  Now all that remains is to update some of the current mathematical functions.