updated docs and minor fixes