Pseudocode finished
Cleanup