add doc strings to functions