Enchanced scripts.
Clarified (hopefully) some copyright issues.
Minor refactoring.