added kwargs to tree reading functions, added command line arguments to read prune patterns from file, and to interpret prune patterns literally rather than as regex