Modified examples, and a bug fix

Additionally, readme got updated.