corrected options parsing
added version