fixes
add missing licence headers
Apply license