cleanup much of the HPS code: STYLE.md, gcc -Wall

There is still much copy-pasting in these files...