Updated documentation on all functions