fixed bug relating to replacing newlines with NULL and added an
input.txt into the src folder for future terminal testing with test.sh