Added docs and fixed typo