Added a license

Added a license, so use of the code does not violate the copyright.