add headers to the scripts

Some bugsfixes
Merge remote-tracking branch 'origin/master' into gh-pages