Fixes transfromations, empty line parsing, and checks for file existance