Changed method name of getJSONByPage to getJSONByOffset for better
functionality description.
some tweaked comments.