1. Fixed some threading bugs. 2.Added a not-so-good progress indicator if you don't want to use stdio 3. Compatibility broken