add m4s

also updates the type used for tile coordinates from int to specific precision integer