Added COPYING notice and copyright notices to all scripts with some misc changes here and there