Added better session checking and opened documentation to public