Wrote some documentation, fixed some things.