- revised the module to define a function that generates a matrix from
  various types of features