beautified print_stdout
changed vartype of outputfile and added ofstream for writing
fixed typo in parameter
writing outputfile
output atom number and commentline