re-wrote testing routines, added necessary input files for testing, renamed files and functions to be user friendly