refactored cpu percent states. fixes #24