- Cleaned the code
- Fixed ID_REF