Prolog Mode declarations supported and spdet output moved from top to bottom of page

Please enter the commit message for your changes. Lines starting