added location validation
Added doc