Debug viewer implemented

Right now it can show some text on the first page
Maintain lext leading