Calculate wx, wy in loadMolecules. Update getCategory to get the category field from self.i3_data.