Parse class methods. Overloading not supported yet (it tries to make a function with the same name)