Made arrays sensible

Instead of having arrays start from [0] they now start from [1] making
the code read better and flow more logically