storing method names array and making method id look up use a map as requested; added comment regarding returned component name for OC