New CMake-based build, revised documentation, option to set number of records in internal test.