Added penLayerID

Also updated to CS 1.7.1