Comment some code to avoid warnings about unused variable
Fix return type of some NLCG methods and rename some methods consistently