core: More documentation and indentation fixes. Some minor various fixes.