A lot more documentation and some random/minor bug fixes.