Fixed some guard
Created class ElementBase. Small fixes on ManagerBase.