Moving default to main.
Fixing licence.