A GUIDE TO A PL AGENT : A DETAILED HANDBOOK