fix typo
changed where we disable peripheral
update comment
added state struct variable
update
grammer