Added an option to prefix sudo for setting the permission and ownership. Added license text.