added temporary buffers to initialization
wired temporaries in update function
added gravity example