Cleaned up controller, generator.html, and index