added read settings function
added constants.go