Added support for pretty-printing
Updated to reflect recent changes. Added license.