some re-indenting.
added some parameters at cmdline.
added parameter to control descriptor magnitude threshold.
adding match ratio param.