rewrote PET to handle memory reads and writes differently
Merge branch 'master' of github.com:terjr/thesis