important bug fixes and a large update; Windows compatibility