Commentary added including sample execution and renaming of internal variables.