added test program for test flipping relays
fix to issue #158
Merge remote-tracking branch 'upstream/master'
added progam to test the relays from command line
Merge pull request #161 from ehsteve/master

Test program for flipping relays and fix for file naming issue