Fixed broken piecewise validation
Changed styling for piecewise
Added tests, up to ~95% coverage
Started documentation, still needs a lot of work
Increased coverage to 100%