Added option to skip first n pages, better sorting, handles folders