cleaned up parsing code, added code to fetch most recent data