A GUIDE TO A PL AGENT : THE DETAILED HANDBOOK