Several changes

Change return of loadSession
Change names of variables.
Made error messages a bit more informative.
Add function prototype and some notes
Make loadSession create a session if no folder is found.
Make loadSession not complain instead