moved error messages to types.go
cleaned up error messages