improved readme, including a code snippet