updating to fix Android crashes.  Swaping out sprintf with snprintf also adding a reset() function to reset the counter, prefix, and format if the thread isn't running