add license header and author note
use explicit method to define angular directive