added example and fixed lib