Added whale header code.
Added priority thread tests.