added coments and formatting for ctr bit flip