improved device class
added sample_file.txt for test without live capture