First draft.
Added license headers.