Made core classes serializable.
Updated documentation to reflect that core classes now are serializable.