- Adding toArray code to the interface
- Fixing function comment