added licence header, closed #4