put a limit between 1 and 50 for repeat commands

also added $count keyword for use in template
fix template variables and check for command exec

template variables list includes 0 for entire argument
and then 1,2,etc for argument placement
can now have aliases that run internal commands