Tweaked pitchAndKeylockMode constants
removed unused funktion
use c++ style casting
remove stray new lines
Fix renaming inside comments