Put in a loop
put in loop, breaks after data got

the code was put in a loop and the old data_interpreter code was put in
a function. loop should be broken when count > 0 and flow returns to
main. needs to be tested before merged with master