Bug fix for sessions, finish commands

Messed up refactoring, added back connection and csv loading