Removed Hex class, fixed compiler warnings