add tristens style changes from https://github.com/rweait/beamapper/pull/4