New dir struct. Removed old files. Substituted error messages by strerror.