Style + documentation improvements

Various style and documentation improvements included.