added --essential and --obsolete-only command-line options
corrected package name matching