added #to_array and #to_hash to ScanReport, changed some variable names