Most rework done. First real commit.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>