Amended Page config file. Cleanup code. Added PHPDoc