Fixed other little things like removing the quotes and spaces involved when writing a file.