setCDS, setTranslationStart & setTranslationStop fixes.

Plus refactoring and new functions here and there.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>