Added 'cell number to coordinates' and 'coordinates to cell number' functions; minor stylistic changes