added delete logic to reclaim memory.
Closes #4
added tear down to tests, to reclaim memory.
closes #5
moved sample input files to a directory
bug fixing and cleanup