changed some dir handling stuff and added comments describing my issues with removing old/writing new file