BOOST2012 MC group public code (AKA "slightly less messy code")