Added branch for k-values to HDF5 tree

- We can now access k-vals at /[type]/ks. This is reflected in MATLAB
scripts.

- Minor cleanups in rest of code