clean up pseudo-code with more better markup