initial commit

basic factory functionalety:
build/create doc and multi docs
replace $seq in string with sequence num
replace $len(n) in string with string length of n
modify factory with custom doc even with multiple