Add some function documentation