some cleanup
added some comments to rlayerPAP package