Added status codes for pages and debug statements
Removed debug statements