Fixed pretty print. Final on inputting records in maindata and collision