fix session bug, improved mouse resolution
uses new convertion function, casting char type and setting proper new line
removed old cruft
Couple of more usefull coversions forgot to commit