Structure and functionality of bromine doped graphite.