Added printf's for the user along with the fprintf and included Jansson error messages
; Cleaned up the print function