Source issue fixes

Fixing license headers and removing unused/unnecessary dependencies and components from sources