moved license into seperate file
moved main.js into the lib folder and fixing explicit references