added support for nested classes serialization
added BSD 2-Clause License file