cleaned code a lot, and improved progress bar