add copyright header in each file.
removed unused error file