Added a new callback: 'onChunkDownloadStart', as well as some refactoring and helpful comments