Removed a to-do
Refactorized and tested chunk function and usage
Improved again the chunk function and refactorized strategies and invoice generator