Add in more documentation. Fix a few problems.