change `module_function` to `extend self`

this gets public instance/class methods instead of public class
methods and private instance methods