edited overloaded operator <<

set current=NULL (for memory leaks)
return output;