Ver. 1.00 Add MOR method PRIMA

Fix some bugs, and add comments for every function