I'm not quite sure what you mean by your question about the 16 bit integer... Are you asking about binary? Or something deeper?
In response to displaying the maze, I could find little about dotty on the web, but what I did find suggested it drew to the console. If this is the case, you can use
ncurses to draw to the console and do a bunch of other stuff as well. Using the
special characters it provides you should be able to draw the types of mazes that are being generated by the algorithm on MazeWorks. As far as I understand how dotty works, this will require slightly more effort as it doesn't do it all for you from a file you provide, but you will have far more control over it and the ability to make it more interactive than it otherwise could be