edited names, created inner product, and better output