A bit more organization and comments in the file might help a new person understand this a bit more.