Adding requirements.txt
Adding a bit of error handling and polling for document status