Added logging function to script to keep track of the pipelines activity and potential errors. Updated the readme.