The code is doing rather complex string manipulation. Without
sufficient commentation it is hard to understand what it really
does. Better documentation is now included.
Non-numerical data is also now marked as undefined, if there are no
numbers at all in the input data. Completely empty entries are also
marked as undefined.
Finally, santitized string output is NULL terminated even if also the
last entry was undefined.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>