Finished documentation. There are still some TODOs.