Code style: added several sections and clarified others