Added copyrights and corrected style issues.