occam2d building of prejudice file from well data

added new functions to build prejudice file. Plus some fixes to
roughness penalty exceptions