added notes on using as lib