Fixed end_page condition
Fixed end_page==start_page condition
Fixed issue with compare writing of pages
Added name_prefix functionality