Code cleanup. Comments added.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>