Estimation of operation lengths working, a bit of refactoring
Make seem not work with target dirs, mabe fix this later
Main fixed bugs