Comparison code for jaif files
jaif comparison and command line client bugfixes