update docs
refactor shell scripts