Psuedocode

adds psuedocode, not necessarily a reflection of C code