added sparkContext.stop callin main