Further writing and roxygenising of docs.