Fixed a few small errors, more documentation