doc strings added to all functions.