Enforced proper alligmented, added run percent error, and filename to output file