Added support for static files and refactor for router class