added example app and made log appending use async