Original files added
Some Windows compability and other fixes