Added name and closed constraints
Purposes' basic structure created, including actions in the controller and basic views