Added page graph logic, doku and fiexed Bugs