Fixed formatting (using Tabs consistently)
implemented issue #3: please add Scala's mkString function
removed redundant code parts
added some tests for mkString