load params from json and minor output format fix