Constants for default values extracted.
Usage of command line arguments (pattern, thread count and root) implemented.