Added automatic teardown for attached components after dom removing or window unload
cleaned up documentation