commenting and indentation fixed for examples