fixed warnings and errors in documentation