.R code file for creating tidy dataset

Added comments; removed data frame length check (superfluous)