added middleware for static files and rake tasks for create files