Scala doc fixed
Warnings fixed