moved and improved PWMatrix.pro