added start time and end time logger to output the time taken for querying. This is for evaluation and optimization.
changed cjson back to json after evaluation.