Added copyright feature, improved code readability