More work on docs and lots of code tags.