Added proper command line access to load json and changed print statements to logging