added dosave parameter to manualfit