Fix file names and add type information and session classes
Factor out script execution into its own class
Refactoring and session invocation