Fixed bugs in Lisp version.
Changed printing format to accept an extra argument telling the type of the number to be printed.