refactored and fixed fitting with x-errors

Authored by sgerlach on Apr 21 2018, 10:39 PM.