Refactored the automation suite and added comments as much as possible