refined code for eigcg diagnostic routines, fixed bug in magma interface, memory optimizations for initcg part