Some C++ corrections.
Add license.