Cleanup in the error files and file for typing