update readme, add advanced usage example