Rename params to args
Refactor write/writeln operator to use only one function call