refactor; still wip
auto reformat by WebStorm
Merge branch 'master' of github.com:kmxz/pmfet