Implement recover()
Reformat code
Add test for recover()
Add tests for timedOut