RPAM fixing

Added missing arguments, typos, etc. to rpam CUDA code. Also fixed some
of the matlab indexing code I was trying to get working on one timestep.