Fixed Scala style issues.