update of pp algorithm, so it works!
Merge branch 'master' of github.com:Robinlovelace/smsim-course