numbering fix, file output added