updated some inline comments