New simpler factory firmware example plus minor changes to old example.