States added, errors in console fixed, add constants, $stateParams for parameters used