I just found out that user br3ttb created a very useful looking PID library for the Arduino.
I had considered turning my hacked together code into a library, but never got to the point where I thought I could pull it off.
This should definitely make it easier to test various physical setups as it will standardize the software to a great extent. I can't wait to try it out with a real project. I even have one!