Implemented session context
Session implementation and comment formatting
implemetation of query
Some corrections