Refactored Controller, questions, categories, and type erb

Also added Destro function to records.