fix documentation
Remove SafeBool from genclass template
Enhance Queue to perform COW
fix comment