fixed a bug where category was switched with type, added basic methods.