So you click edit code to make a new commit

That helps. Heres the program updated, fixed and commented. 

Runs pretty nice now