Moved parameter reading code; now basic object setup is done in new() and reading of XML parameters is done in set_params().
Minor: added a symbol SPREADMODEL_NTRACE_DIRECTIONS giving how many elements there are in the enumeration SPREADMODEL_trace_direction.