Shorten fn names and reverse infiles and outfiles

Now outfiles come first and the method names are shorter, e.g
method-step instead of add-method-step.

Also adds a function add-methods which can add methods in bulk to the
parse tree.