make write error more clear
Fix issue with many tags

Changed tag name from tag%d%d to tag%d_%d and end from end%d%d to end%d_%d to
make sure the computer will notice a difference between e.g. 11_1 and 1_11