Refactored code
Finished page identification api