[Hopfield] Haddock documentation and -Wall clean.

Summary: As the title says.

Test Plan: quickCheck, hopfield_demonstration

Differential Revision: http://phabricator.tullo.ch/D4