Flush standardout after each print
Removed new lines in the output ; add debug wrapper ; removed print statement