Update README.md

Added instructions on building a library.
Added comments to example code.