changed links to symlinks
added optional file output flags