Richards changes, added cMake build, corrections to latex syx