Fix up formatting
Fix up output tests
Rename output test
Add rapidUpdate method

Also add a few missing var declarations
Rework loop logic a bit in rapidUpdate
Add tests for rapidUpdate