Added PMesh class and unit tests
Merge branch 'backend_code'