improved bug free code
bug free code refactoring
cleanup
clean up
first implementation of session handling