remove unused variables; add warning flags to intel compiler; make progress percent thread safe