seperated main file

Seperated the main from the main widget file
added license.txt file