Add beginning match option, and change swoop-function