implemented write functionality. Still lots of stuff broken -- empty inputs, stops when it hits field too large, only works on one tag format