No offense :) it's not my code, i took the example form Cinda because it's very simple to understand, and modify it to run on legion
I have my own rotation, but i'm not 100% happy with it, even i do high heal with it (I'm on MM)
It's the tank part, i should take mine but between raid, expedition and reroll ... i'm a bit busy in game ;)