Added copyright notice to source files and cleaned up used namespaces.