Convert tabs to spaces
Actually add the module_type field to the data
Fix KeyError raised if no rep_info is present