adding license notice to every file
cleaner way to get script path
huge refactor