Slim undervolt code

Here is the undervolt algorithm slimmed down a bit.
You know I'm not an expert on Java, so probably there's some mistake. But take a look, I think the idea is fine.