refaktor docs for controler + directive