unfinished program, added sample file format