Added better railroad diagrams to documentation.