Create run script.
Finish refactoring, broke something.
Unittest, debugging macros and memory printing function.