improved fluent api and added example for usage