A study of finite gap solutions to the nonlinear Schrödinger equation