more functions, more tests
compile and test on Windows and VC6