Mesh base class. Warnings fixed.
Refactoring