introduce sbt and fix errors