improve documentation
fix command-line options parsing
fix handling user-provided icon