refactored on/off to high/low and hi/lo; fixed bug with low state in arduino; added arduino example