modifided loading progress status, works on mac, now uses flush(cout)