Added library code
Updated README.md