Just added some comments about actions
Corrected bug in random identifier generation