[mod] style to make code more readable
[mod] add comment on state of append_endl