code cleanup, reordered, renamed. #24
clear loottable on LOOT_CLOSED with rollingopen = false, because that means GetLootInfo didn't finish. will allow loot to restart when window is opened again. #36
updated some comments/debugs