new changes

made the GS1011 commands state driven, since there's  logical sequence
that needs to be adhered to.