merge () and  mergeAndLog() added,not test yet
some bugs fixed
main() updated
read path from command line and use merge() or mergeAndLog() to union the json data