improve local linear solver
remove debug files
style change