add options, help menu on console, document root, control number of threads