fixing unsupported array syntax for php 5.3 and adding standalone file supporting our Paginate class