add a registry to track the created methods
Merge pull request #4 from ninech/registry

add a registry to track the created methods