More refactoring of PolyMeshDetail.
Changed variable names to make them more meaningful
Replaced some arrays with lists.