Renamed several functions to match Matlab convention and added split4dTo3d, a function written by "baggy" on the site mysite.bagarinao.com that's used in my code.