docs improved + global funct to angular module .controller