H works

Finding the H value works. Added some comments.