Added the progress callback support to be able to fix bugs #394 and #236

This is an intro to make the progressbar actually doable - the issues became a little bit outdated - good to lean on the problem once again