added refined profiling to ldl, removed some non-ansi compatible comments