Fixed Processes

TODO: Limit # of process according to matrix size

+Fixed process
+Fixed gen Script
+Tweaked writeMatrix Function for diff operations :)