MNT: Removed reinvented wheels in favor of lmfit

Also aggressively renamed functions