adding some comments and logs