Fixed syntax errors in inner product generation code
Added device scalar and inner product in the generator internals
Better files segmentation