linearize function added
parsing of command line options improved
input data is now checked more strictly
a few examples were added