moved lookup tables to separate file
completed all core functions and key schedule