Improve the way we determine the selected method

Now as long as we select some statements in the method, we can determine
the parent method. We no longer need to just selected the method name.

Closes #31.