Different types of nonlinear localized and periodic waves in an erbium-doped fiber system