Headers and gists

Fixed headers with GPL etc. and added 2 scripts from gists.