Restructured files and added reponse structure.
Separated redis logic out of main file.
Formatting.