temporarily downgraded Java compiler to 1.6; modified code for spark standalone cluster running