update docs
minor update to serialization when in main module