update docs and minor bug