remove to_error trait function as not needed.
Moved files