Some cosmetic changes in script
added license