modify testDeal function; refine format of code

1. recover the effectiveness of 'price' paramater of testDeal function
and supplement chunk of code for plot with time axis.
2. remove tab before some chunk of comments code.