Multiple fixes to ifelse.rst
Multiple typo fixes and rephrasings
Code fixes for consistency