Began adding support for parse thread

added proper functions for parse thread, all relevant code commented out
for demonstration