Code cleanup.
Added some debug logging.
Adding sample files.