Added limit and offset options
remove temp file
Added initial pagination