added error checking for looking up information
fixed bug in outpupt of .c that was showing HTML