minor improvement

Qinsi,

I've made some minor improvement on your code base. Please take a look at them when you have time. Feel free to visit or send an email if you have any questions.

Thanks,
Soonho