function implementation and comments
added testling config