a lot of code markup and sidebar action

No significant code components were changed as some of the files seem to
be WIP from STENKA.