Primarily bug fixes in update and child routines. Original is all unsigned math which is problematic.