Renamed mainx to marker to make intentions clearer
Fixed spelling mistake