Bug fixes more refactoring and I now have a second example working with the new mesh classes