Cleaned up Arduino code; tested lamp flipping