Progress bar, save to file

* Saves ID's to 'id.txt'
* Progressbar when grabbing states