changed gem file
spec
added configuration
added the session part
passed the test for to_document