Added function descriptions to CPU code
Removed unnecessary squarematrix code