Revert "Revert "Code style modified. Copyright statements added.""

This reverts commit 609626ad04bf7c0d04a2ccbbae4db68e0cc28bee.