added license notice to the rest of the cpp files