change to Apache v2 license
add license headers