Adding documentation for flatten

Add documentation for flatten, which was added along with gensym