Added functions for live environment log and revert changes
Restructured files