Working on windows support. Also, converted tabs to spaces.