fixed crafted dns packet
Comments, documentation and code cleanup