P02 to p10 documentation and unit tests