Indent Code, Add extensive comments, Remove unnecessary statements

I did a lot now, I basically read through the whole thing indenting the
code, while writing comments for all the statements, functions etc.
I found lots of variables, comments which had once served a purpose
but then even after it stopped being neccesary I had either commented
it out or just ignored it. I have removed these variables, and
unhelpful comments.

I have tried to leave more space between statements, I have also tried
to block together relevent statements.

I have mainly removed the traces of the statements which was used to
provide support for the app to work even when there was
no connectivity.

Of the 2 variables being used to fetch every set of articles
only one was actually required, this has been implemented.

I discovered a big bug, which had gone unnoticed before,
Even after changing category, the articles being fetched were
not the latest from that category as the variable used to keep track
of fetched articles wasnt being reset after we changed categories.
So if we had got the 20 latest articles from the first category
when we shift to a different category the 20th to 30th latest
articles were being fetched and displayed.
Well anyway, now its being reset.

I added the corner case when the batteries category was selected,
the usual iteration over the data supplied by the server wouldnt work as
that particular section has only 4 articles. we always request for
NO_TITLES ( 10 ) number of JSON objects in every result we get.
But in this case we know only 4 will come, if we try to iterate over 10,
the indexoutofbounds error will be called.

Signed-off-by: Aditya Prasad <adityaprasadiskool@gmail.com>