updated routes and added api for file parsing