added code for parsing data downloaded from APD website