Updated the docs and fixed some doc errors