implemented chargeState calculation on click. moved libpillow up one folder