Add return value to each of the DoXXX functions
Convert DS1961 functions to C++ class