Add library querying example and improve section naming macro