Refactored dir struct, implemented activity lifecycle, added button to enable/disable monitoring.