Fixed submesh bug, improved Clear().

closes #151
Merge branch 'origin/master'