added constants and fixed location manager with accuracy