IT WORKS! For now. it seems. Also, updated progress bar so that it is easier to read. Also, a while ago updated makefile to compile with optimization; this yielded significant speed gain.