Add extensive documentation string.
Re-group module imports by source.