Fixed array variables and created input dialog

Initialized arrays correctly.  Also created input dialogs for the user