Added windows support, pretty much working now