Update CatchMatrix.R with code and comments

Checking the functions