Fixed opt_flag arguments and usage.
Added dump feature.