Fixed major bug with function composition. Everything should be running smoothly. See example tests