Bee sorting works now.
Moved stuff around.
Made addon registration into an API function.