some fixes for windows, quick and dirty docs