added lib.py
modified README