Added copyright information and optimized some imports.