Redesign meshtypes

This will close Issue #123