added routes and main module file along with some comments