add a Progressbar to see the progress

1. the progressbar is not very accurate but useful and, looks better
2. move mydir to the main class as a funcion