added categories list as dictionary in pickle serialization