1) renamed 'info' attribute to 'errorInfo' 2) fixed spelling mistake (charginState) 3) small refactorings