Windows fixes and documentation