added Step counter code, still needs to be looked over
commit repo