Added curve module

This breaks quantity tests - due to the addition of Percentage
Will fix these later