add functionality of toJSON and reborn
version 0.2.3

Add funtions toJSON() and reborn()