Complete documentation for PAI.