adds mapping table (fixes #9), updates example (fixes #8)