replaced hard coded page-sizes with defined constants; removed debug 'output' includes