corrected problem with broadcast (spark bug?) by having def main() instead of extends App in medatscale.Main object