added type model
generated types controller
added type index