Add an option to print the output in AMD style

PR for issue #34