Various fixes

- Updated reps
- Fixed remove issue
- Added debug
- Restructured error handling for EMFILE