Investigation into a routine murder inquiry in a Scottish town that led to two people being wrongly accused of serious crimes.