Fixed newline bug.
Fixed open file function to accept blank input and set default.