added license notice to code