Fixed Get-CharmState and Set-CharmState

- Fixed Get-CharmState
- FIxed Set-CharmState
- Modified function names to match convention