Create method_t for method tuples, rewrite write_method()
Add test for version numbers