Fixed dictionary validator and some docstrings