Added some basic function documentation