fix
Added rev (=reverse) parameter
Polishing