Adds Documentation for some of the high-level concepts.

Also refactors a typedef and a delegate method to improve readability.