Implemented stocastic smearing and et dependent energy corrections.

Addresses #52 and #57.