Added Example of using PowerSource and Ground
Also Fixed a bug in getInputStates