new function for fixing database
added function to show probability limit;
new functions for fitting
test scripts