preparations for #11, #13

refactored data table structure, added lookup tables, added lookup table
generation