Fixes sin curve generator. Adds exponential curves.
Significant refactoring to envGen and the lineGens.