a little bug fix? and a small improvement

Hi, I came across this while playing with Org and Babel, I think there must have been some change to either Babel or SML/NJ or something since it caused Emacs to hang. Terminating the SML code body with a semicolon fixed the issue for me. I also took the liberty of tidying the results up a bit.

Cheers,
Aki