code for file upload and parsing added