Updated pl document and code to test pl