include mag lookup table
added missing equations and skeleton tests