Added some documentation, other stuff.