further formatting and commenting additions