added binary output file, capability for multiplie trigers