add command line paramters to specify some variables

add subnet epoch to set the #epoch of subnet(fc6, fc8)
change the way to determine which parameters are required
merge from new repo