Update code listings to match J. Comp. Sci. submssion

MATLAB code listings updated to match Journal of Computational Science
submission by Florian Huhn on 2014-06-13.