update dox
add cypher mode selection
add an IV unit test