added lib and comments