Adjusted dispatch functions to write by themselves, simplify execution - test each!
Merged rewire branch into master, added test folder