fixed writeln()

small fix but incredibly useful for debugging