added best-in-region functionality, toggleable; refined line profile procedure (but not entirely, more work on it to come)