Added some more comments and chnaged up some input stuff