Added exception when triplets in input file, minor tweaks