Better error correction in lib functions, bump version number