Add main method for testing initiliazation and serialization.