Added fixes to pLayer to make it compatible with VTK 6
Changed permissions to be consistent