added some comments in BaseLib