Added and fixed some documentation.