Adding CompositeFunction class
Adding unit test for CompositeFunction
Fixes for make dist