Moved output function into separate file.  Added synthetic data sets.  Added debug.R script to test functionality.  Added Roxygen documentation.