finished the comments and altered the variable names in order to them be more descriptive in general. Finally, put the library(reshape2) at the top of the file to make it neater