+act #13004 make number of cycles parameter and some (scala)doc fixes