timearray() cleanup

Cleaned the function timearray for better performance and readability. Also added identation. I suppose we can now use the header:

```
function timearray(response::Requests.Response)
```

but I left it on a comment