Added doc strings to functions.