update docs, code