DM Inverse Queries

Added better error management
DM Inverse Queries

Command Line Argument interface