Documentation to 100% and fixes to the new agent code.