Added a new function to reduce repeat code. Added more comments, and better formatted the code
Created basic actor code that can run s1 python file