Improve documentation and reorder function methods in objects.