moved everything to ealib namespace; clarified and documented ea lifecycle.