Added doxygen for all functions

Changed parameters for logicalToVisual functions
Fixed win32 build, untested on other platforms