main.sh updated and licence added