update docs
fix typo
added some tests