Documentation. Fixed some errors producing warnings