Added copyright notice to headers, replaced tabs with spaces and adjusted indentation