Changes gen_sh_functions.rb to accept a hash instead of array
Cosmetic change to generated comments
Added matrix gen code
Tentative makefile (omg this is so shit)