Changed the license and format of code.
Changed permissions.