updated scalastyle settings and fixed most issues