Fixed guirun:populateGridlist() from spamming.

- Rewrote loadCode() and made it miles shorter