Added base for batch file parsing/execution. Fixed some other small issues across files