Finished pseudocode main

all done in natural language