changed the linesearch hpp template
a few more updates