added scala doc