Added script documentation and licence