Add mask mode
Bug fixes for mask mode.
Some changes to raw2dyna
Add usage output for mask mode.