changed lots of things including making it work for windows and flipping signs appropriately for negative right hand sign variables