Added a license-generation script. Added licenses to all .h and .cpp files.