Added/fixed lots of documentation.