Increased the functionality

changed so that it validates also for matrices with higher size than 2x2 also. 
Quick fix for empty values.
change the regex so that you can have more than one space between the values as well as accepting numbers like 1.22