renamed library, added some comments