Adds config state

This is my first formula, and my first pull request on github. Please be as nit-picky as possible as I am learning how to structure future changes in the process.
Thanks. Fixed.