compile funtion

watchout for two common errors:
1. directive is defined in as simpleRepeater but used as simple-repeater
2. scope.$watch, don't leave the $ out.
setup directive controller

just inital commit

will add controller later
added controller to directive