Refactored hay block class

Added additional comments, simplified some code, renamed variables for
consistency.