Refactoring, added errno description function