correctSigns function

Correct sign errors and value interchanges in data records