added new method for parsing data in preparation for better formatting and for csv outputting