fixed minor coding and styling issues.
removed deprecated parameter.
cosmetics.
fixed compilation in Debug.