Added caching for 6 hours to main endpoint. Refactored Controller.