Simplified mesh and corrected errors
Made a lot of comments. Added a test of documentation.