Fixed samples. Added checking of parsing parameters. Removal of warnings.