How can I modify the code in taxonomy feature to include terms
Features can't export (and import) terms without "extension".
You could use UUID Features:


  The UUID Features Integration module provides a mechanism for
  exporting content (nodes, taxonomy, fields) into a features module.