added sample files and implemented binary switch