added more greetings to Array, more comments, cleaned up code