applying Philipp's patch to incorporate beam jets
Changes to CMakeLists to silence warnings.
Using double instead of float in as many places as possible.