RetrieveItemThread half-working, category enum created, JSON-library fixed