Few fixes

Number padding, file printout and newline print