improved: comments and indent
added: function comments