phspace3d and aphspace3d added

In this pull:
* bugfix on aphspace
* new: phspace3d / aphspace3d