pla: added printcommands function