Added a main method to enable calling comparison from a shell script