Refactored controller; implemented baseline Titan analysis formatting code