Refined documentation. Added license to script