maze: added options to change output strings. cleaned up the code a bit.