removed segmentation faults, corrected commands and output need to fix o...

segmentation fault removed, commands and outputs corrected...nned to only change for battery

jira issue: WP-829