fix bug with collision code causing js error
initial user functions implementation
fix bug with ghost object, add two additional buffers to array