Fix matrix multiplication kernel indexing bugs and update setup script.