Finish writing settings docs, cleanup of settings code.