Created generic lookup wrapper

also made existing wrappers use new generic function
Merge pull request #1 from gambogi/patch-1

Created generic lookup wrapper