php scripts, new valve functionality, and documentation

Added the latest version of the php scripts to the repo, modified the arduino code to account for the added valve along with some other bug fixes, and added a large amount of documentation to all the code for it to be in a maintainable state.