Update script for new page format

They changed the page format (again), so update for compatability.
Also added copyright notice