adding some comments for clarification
logging parsed header bits