some style fixes. catefixes to map styling and safety. categories implementation improved but still incomplete.