added logger
removed null entries for weapons
added debug statements
added deobf code block