added clone creation
improved channel creation
changing exit function for channel class