Changed array of webpages to a webpage class

Also removed the possibility of giving time as a double.