Fixed relative import complaint in pylint.
Moved mesh functionality into its own class.