Added some more code doc
Fixed smaller layout problems in the rst files.