Moved the public folder declaration up, removed case insensitivity, changed listen call.