adding two comments on doOnce replacement cases
just changed a sequence number of printouts (diff looks messy but it's a simple change)
separating the primitives from the other commands as this is needed for coming regexes
now there is no need of "rotating", "moving", "scaling" - one can just use "rotate, move, scale" all the qualifiers are automatically found. Added test cases.