added session check and updated readme