comment fixes, formatting, duplicate array key