Moved the head controller implementation into the .cpp file; cleaned up the comments.