fixed z accleration
more 3d fixes
some fixes and reduced unwieldy line lengths
bug fixes in 3d
probably a Q fix
some bug fixes and changes needed for correct 3d results
more 3d bug fixes
more 3d fixes, close to working in parallel
typo