Fixed Insights "Usage of a function in loops should be avoided"
Fixes Insights "Text files should end with a newline character "
Fixes Insights "A route should always have a valid HTTP method"