Added old sources from cpp, amalgamated documentation from all three code bases, and added to utility functions.