Some comments and refactoring of the pii.cpp. Added the Sampson test data.