added copyright and formatting standardisation