Changed margin to run as a command-line tool as well as a node module.

Updated default output file name to be document.pdf