changed to fix issues with few/no negative bias conditions
fixed size issue
minor fix
Added function for simple fits with text files