updated looping algorithm
updated looping algorithm
fixed test
fixed output default value to correct type
fixed runLoop
fixed key type
fixed console output message
renamed fields