Added code samples and updated the README