Add details on using as library