Added methods for getting pages and instance pages list
Removed debug line
Simplified APIs