Modify coordinate system in software, and fix some bugs

In our previous versions, the coordinate system, which used to index the data from data matrix, was based on the rotated data matrix. It conflicts with our Intuition and habit. Now I have modified the index method based on the original data matrix.

Also, I have fixed some bugs.