support for output stored in session and remebering posted form in session
adding testcases and example on usage