added docs and script