Fleshed out a few functions and made sbt work
Added a few test cases