Minor corrections

Added minor corrections to remove the inconsistencies in the printf statements in the examples.