added some useful comments.