Cleaned up the docs considerably.