Adjustments for SBT

Refactored sbt build file and improved ScalaTestFramework for performance.