New flags: '-wrap' and '-unwrap'.

Refactored the func 'remashal' to implement the new flags.