created categories model
some changes
created categories controller