update docs and script