updated formatting

Modified formatting and curly bracket, adding a curly bracket from a previous commit did not properly close/open others. I found the missing brackets and formatted KGW implementation appropriately.