Removed unused commented code
Added an array display function