A GUIDE TO A PL AGENT : THE COMPLETE EXPLANATION