added documentation for fromfile, removed max_output