Added some comments into source code.