changed to new line json logging & ability to change log filename