baseclass: added documentation; some code cleanup

added check in EOS event handler to avoid potential duplicate loading

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>