Some of the pseudocode

Here's some of the pseudo for the scanner file:
take a look if you want to see/edit