Update Tracer to use doubles consistently and const objects where appropriate.