Updated readme and added example code.