Kraken: Add comments on raptor
Kraken: move declaration of some variables to a more suitable place
Kraken: Change a check so it's more understandable