Simplified category initialization. Added semantics initialization.