updated documentation and  for code formatting.